package dao;

import bean.User;
import utils.JDBCUtils;

import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;

public class UserDao {
    public User getUser(int idP)throws Exception{
        Connection conn = JDBCUtils.getConnection();
        try {
            Statement st = conn.createStatement();
            ResultSet rs = st.executeQuery("select * from goods");
            while (rs.next()) {
                int id = rs.getInt("id");
                String name = 

            }

        } catch (SQLException throwables) {
            throwables.printStackTrace();
        }

    }


}
